package bar.dark.lee.macro;

import bar.dark.lee.fan.FanData;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

public class MacroData implements Parcelable
{
//	"id integer PRIMARY KEY autoincrement," +
//			"category text," +
//			"memo text," +
//			"inmoney text NOT NULL DEFAULT '0'," +
//			"outmoney text NOT NULL DEFAULT '0'," +
//			"postmoney text NOT NULL DEFAULT '0'," +
//			"date integer," +
//			"type integer," +
//			"linkid integer NOT NULL DEFAULT -1," + // 현금 인출시 수수료가 연결되는 in_out 테이블의 id 값  또는 내통장 이체도
//			"moneykind text," + // 통장이나 카드 이름
//			"postmoneykind text, " + // 통장에서 카드대금결제시 대금결제된 카드이름
//			"linktype integer NOT NULL DEFAULT -1," + // 현금 인출이나 현금입금 부채시 타입이 연결되는 값
//			"deleteyn integer NOT NULL DEFAULT 0," + // 통장이나 카드 삭제 된 여부 값
//			"title text NOT NULL DEFAULT ''," + // 제목
//			"checkbox integer NOT NULL DEFAULT 0," +  
//			"temp1 text," +
//			"temp2 text," +
//			"temp3 text);";
	
	private String id;
	private String category;
	private String memo;
	private String inmoney;
	private String outmoney;
	private String postmoney;
	private String date;
	private String type;
	private String linkid;
	private String moneykind;
	private String postmoneykind;
	private String linktype;
	private String deleteyn;
	private String title;
	private String check;
	
	public MacroData()
	{
	}
	
	public MacroData(Parcel source)
	{
		this.id = source.readString();
		this.category = source.readString();
		this.memo = source.readString();
		this.inmoney = source.readString();
		this.outmoney = source.readString();
		this.postmoney = source.readString();
		this.date = source.readString();
		this.type = source.readString();
		this.linkid = source.readString();
		this.moneykind = source.readString();
		this.postmoneykind = source.readString();
		this.linktype = source.readString();
		this.deleteyn = source.readString();
		this.title = source.readString();
		this.check = source.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		
		dest.writeString(this.getId());
		dest.writeString(this.getCategory());
		dest.writeString(this.getMemo());
		dest.writeString(this.getInmoney());
		dest.writeString(this.getOutmoney());
		dest.writeString(this.getPostmoney());
		dest.writeString(this.getDate());
		dest.writeString(this.getType());
		dest.writeString(this.getLinkid());
		dest.writeString(this.getMoneykind());
		dest.writeString(this.getPostmoneykind());
		dest.writeString(this.getLinktype());
		dest.writeString(this.getDeleteyn());
		dest.writeString(this.getTitle());
		dest.writeString(this.getCheck());
	}

	public static Parcelable.Creator<MacroData> CREATOR = new Creator<MacroData>()
	{
		@Override
		public MacroData[] newArray(int size)
		{
			return new MacroData[size];
		}
		
		@Override
		public MacroData createFromParcel(Parcel source)
		{
			return new MacroData(source);
		}
	};
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getInmoney() {
		return inmoney;
	}

	public void setInmoney(String inmoney) {
		this.inmoney = inmoney;
	}

	public String getOutmoney() {
		return outmoney;
	}

	public void setOutmoney(String outmoney) {
		this.outmoney = outmoney;
	}

	public String getPostmoney() {
		return postmoney;
	}

	public void setPostmoney(String postmoney) {
		this.postmoney = postmoney;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLinkid() {
		return linkid;
	}

	public void setLinkid(String linkid) {
		this.linkid = linkid;
	}

	public String getMoneykind() {
		return moneykind;
	}

	public void setMoneykind(String moneykind) {
		this.moneykind = moneykind;
	}

	public String getPostmoneykind() {
		return postmoneykind;
	}

	public void setPostmoneykind(String postmoneykind) {
		this.postmoneykind = postmoneykind;
	}

	public String getLinktype() {
		return linktype;
	}

	public void setLinktype(String linktype) {
		this.linktype = linktype;
	}

	public String getDeleteyn() {
		return deleteyn;
	}

	public void setDeleteyn(String deleteyn) {
		this.deleteyn = deleteyn;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCheck() {
		return check;
	}

	public void setCheck(String check) {
		this.check = check;
	}
}